import request from "../../http";

const userApi = {
  async editUserData(params) {
    return request({
      url: "/api/user/changeInfo",
      method: "post",
      data: params
    });
  },
  async editUserPhone(params) {
    return request({
      url: "/api/user/changePhone",
      method: "post",
      data: params
    });
  },
  async identifyUser(params) {
    return request({
      url: "/api/user/realName",
      method: "post",
      data: params
    });
  },
  async getUserData() {
    return request({
      url: `/pc/user/getRealMsg`,
      method: "get"
    });
  }
};

export default userApi;
